<div id="banner">
	<div id="logo">
		<img src="<?php echo $this->baseUrl(PUBLIC_PATH . '/images/logo/logo.png'); ?>" alt="Logo Kênh Phòng Trọ" />
	</div>
	<div id="banner_ad">
		<?php
			// Quảng cáo 
			if(count($this->adv1) > 0) {
				If (list($key, $val) = each($this->adv1)) {
					$auth = Zend_Auth::getInstance()->setStorage(new Zend_Auth_Storage_Session('user'));
					
					if ($auth->hasIdentity()) {
						$clickHandler = 'clickAdv(true, ' . $auth->getIdentity()->id . ', ' . $val->getPage_id() . ', ' . $val->getVi_tri() . ', "' . $val->getUrl() . '", '. $this->point1 .')';
					} else {
						$clickHandler = 'clickAdv(false, 0, 0, 0, "' . $val->getUrl() . '", 0)';
					}
					
					echo $this->cmsAdvertisement($this->baseUrl(ADV_IMAGES_PATH . $val->getImage_url()), false, $clickHandler);
				}
			}
		?>
	</div>
</div>